import {BrowserRouter,Route,Redirect} from "react-router-dom"
import {Home} from "./pages/home";



function App(props) {
    //跟路由
    return (
        <BrowserRouter>
            <Route path={''} render={()=><Redirect to={'/home'}/>}/>
            <Route path={'/home'} component={Home}/>
        </BrowserRouter>
    )
}

export default App;
